﻿using Ace.AutoMapper;
using Ace.Entity.Wiki;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Ace.Application.Wiki
{
    public class UsersPayInputBase: ValidationModel
    {

        /// <summary>
        ///
        /// </summary>
        public string UserID { get; set; }

        public int RoleID { get; set; }

        public string Title { get; set; }



        public string out_trade_no { get; set; }


        /// <summary>
        ///
        /// </summary>
        public string transaction_id { get; set; }


        /// <summary>
        ///
        /// </summary>
        public DateTime transaction_date { get; set; }


        /// <summary>
        ///
        /// </summary>
        public decimal transaction_price { get; set; }


        /// <summary>
        ///
        /// </summary>
        public DateTime expire_date { get; set; }

    }


    [MapToType(typeof(UsersPay))]
    public class AddUsersPayInput : UsersPayInputBase
    { 
    }

    [MapToType(typeof(UsersPay))]
    public class UpdateUsersPayInput : UsersPayInputBase
    {
        [RequiredAttribute(ErrorMessage = "{0}不能为空")]
        public string Id { get; set; }
    }
}
